﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace WindowsGame1
{
    class HUD
    {
        public SpriteFont m_fMainFont;

        public void Render(SpriteBatch spriteBatch)
        {
            GlobalContentManager GCM = GlobalContentManager.Instance;
            spriteBatch.Draw(GlobalContentManager.Instance.Texture("UI/HUDHeart"), new Rectangle(24, 10, 128, 64), Color.White);
            spriteBatch.Draw(GlobalContentManager.Instance.Texture("UI/HUDMana"), new Rectangle(30, 44, 128, 64), Color.White);

            spriteBatch.DrawString(m_fMainFont, GCM.PlayerStat("HP").ToString() + "/" + GCM.PlayerStat("MaxHP").ToString(), new Vector2(40 + 24, 14 + 10), Color.Black);
            spriteBatch.DrawString(m_fMainFont, GCM.PlayerStat("MP").ToString() + "/" + GCM.PlayerStat("MaxMP").ToString(), new Vector2(40 + 30, 14 + 44), Color.Black);
        }
    }
}
